package com.monlyu.vo;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.monlyu.annotation.Comment;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;
/********************************************************************************
 * 
 * <b>功能描述☞</b>联办单位信息<br>
 * 
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>NewsSys<br>
 * <b>文件路径☞</b>com.monlyu.vo.Firm.java<br>
 * <b>开发日期☞</b>2010-2-10 <br>
 * 
 * @author zengjun
 * @since JDK 5
 * @version 1.0.8
 * 
 ********************************************************************************/
@Entity(name = "t_firm")
@Comment(common = "联办单位信息表")
public class Firm extends BaseVo {

	@Id
	@Column(name = "f_id")
	@Comment(common = "ID编号")
	private Long id;

	@Column(name = "f_name", length = 255)
	@Comment(common = "单位名称")
	private String name;
	
	@Column(name="linkMan_f",length=20)
	@Comment(common = "负责人")
	private String linkMan;
	
	@Column(name="phone_f",length=50)
	@Comment(common = "联系电话")
	private String phone;
	
	@Column(name="address_f",length=255)
	@Comment(common = "地址")
	private String address;

	@Column(name = "f_startDate")
	@Comment(common = "联办开始时间")
	private Date startDate;

	@Column(name = "f_endDate")
	@Comment(common = "联办结束时间")
	private Date endDate;

	@Column(name = "f_amount", nullable = false)
	@Comment(common = "支持金额")
	private BigDecimal amount;

	@ManyToOne
	@JoinColumn(name = "createUserId")
	@Comment(common = "录入人员")
	private User createUser;

	@Column(name = "f_createDate")
	@Comment(common = "录入时间")
	private Date createDate;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public User getCreateUser() {
		return createUser;
	}

	public void setCreateUser(User createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
